package com.game.business.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.core.domain.BaseEntity;
import com.game.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 群聊消息对象 group_message
 *
 * @author ruoyi
 * @date 2025-10-15
 */
@Data
@TableName(value = "group_message")
@EqualsAndHashCode(callSuper = true)
public class GroupMessage extends BaseEntity{
private static final long serialVersionUID = 1L;

/** $column.columnComment */
@TableId(type = IdType.ASSIGN_ID)
private String id;
/** "环信群组ID" */
@Excel(name = "环信群组ID")
private String groupId;
/** "发送者用户ID" */
@Excel(name = "发送者用户ID")
private String senderId;
/** "消息类型(- txt：文本消息；
 - img：图片消息；
 - audio：语音消息；
 - video：视频消息；
 - file：文件消息)" */
@Excel(name = "消息类型(txt-文本,img-图片,audio-语音等)")
private String messageType;
/** "消息内容" */
@Excel(name = "消息内容")
private String content;
/** "文件URL(图片、语音等)" */
@Excel(name = "文件URL(图片、语音等)")
private String fileUrl;
/** "发送时间" */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date sendTime;
/** "消息状态(0-撤回,1-正常)" */
@Excel(name = "消息状态(0-撤回,1-正常)")
private Integer status;
 }
